package com.weijian.dal.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户课程关联实体类
 * 记录用户购买/学习的课程
 */
@Deprecated
@Data
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@TableName("user_course")
public class UserCourse extends BaseDO {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    /**
     * 用户ID
     */
    private Long userId;
    
    /**
     * 课程ID
     */
    private Long courseId;
    
    /**
     * 购买时间
     */
    private LocalDateTime purchaseTime;
    
    /**
     * 学习进度（百分比）
     */
    private Integer progress;
}